home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / msoftapp.zip / DIBDOC.H < prev    next >
C/C++ Source or Header  |  1993-06-01  |  1KB  |  62 lines

  1. // dibdoc.h : interface of the CDibDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and Microsoft
  9. // QuickHelp and/or WinHelp documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "dibapi.h"
  14.  
  15. class CDibDoc : public CDocument
  16. {
  17. protected: // create from serialization only
  18.     CDibDoc();
  19.     DECLARE_DYNCREATE(CDibDoc)
  20.  
  21. // Attributes
  22. public:
  23.     HDIB GetHDIB() const
  24.         { return m_hDIB; }
  25.     CPalette* GetDocPalette() const
  26.         { return m_palDIB; }
  27.     CSize GetDocSize() const
  28.         { return m_sizeDoc; }
  29.  
  30. // Operations
  31. public:
  32.     void ReplaceHDIB(HDIB hDIB);
  33.     void InitDIBData();
  34.  
  35. // Implementation
  36. protected:
  37.     virtual ~CDibDoc();
  38.  
  39.     virtual BOOL OnSaveDocument(const char* pszPathName);
  40.     virtual BOOL OnOpenDocument(const char* pszPathName);
  41.  
  42. protected:
  43.     HDIB m_hDIB;
  44.     CPalette* m_palDIB;
  45.     CSize m_sizeDoc;
  46.  
  47. #ifdef _DEBUG
  48.     virtual void AssertValid() const;
  49.     virtual void Dump(CDumpContext& dc) const;
  50. #endif
  51. protected:
  52.     virtual BOOL    OnNewDocument();
  53.  
  54. // Generated message map functions
  55. protected:
  56.     //{{AFX_MSG(CDibDoc)
  57.     //}}AFX_MSG
  58.     DECLARE_MESSAGE_MAP()
  59. };
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.